package com.hoshiibuy.sys.permission.feign;

import java.util.LinkedList;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.hoshiibuy.sys.permission.feign.fallback.IdGeneratorTestFallback;

/**
 * 全局ID生成服务远程调用接口
 * 
 * @author Mr.wu
 *
 */
@FeignClient(name = "hoshiibuy-id-generator", fallback = IdGeneratorTestFallback.class)
public interface IdGeneratorRemote {
	/**
	 * 获取一个全局唯一的19位数字ID
	 * 
	 * @return
	 */
	@RequestMapping(value = "/getuuId", method = RequestMethod.POST)
	public String getId();

	/**
	 * 
	 * @Description: 获取n个全局唯一的19位数字ID
	 * @author Mr.wu
	 * @param count
	 * @return
	 * @date: 2019年4月23日 下午4:16:56
	 */
	@RequestMapping(value = "/getuuIdSet", method = RequestMethod.POST)
	public LinkedList<String> getIdList(int count);
}
